package com.qzdsoft.erpcloud.service.sys;

import java.util.List;

import com.qzdsoft.erpcloud.domain.sys.SysTableAuth;
import com.qzdsoft.erpcloud.vo.sys.SysTableAuthInfo;
import com.qzdsoft.erpcloud.vo.sys.SysTableAuthQueryParam;
import com.qzdsoft.vo.LayTableResponse;
import com.qzdsoft.vo.Response;

/**
 * Created by Admin
 */
public interface SysTableAuthService {

    SysTableAuth selectById(Integer id);

    Response saveOrUpd(SysTableAuth info);

    Response delete(Integer id);

    List<SysTableAuth> getAllTableAuthList();

    /**
     * 表格权限初始化查询
     * @param info
     * @return
     */
    LayTableResponse<SysTableAuthInfo> selectData(SysTableAuthQueryParam info);
    
    /**
     * 查询指定指定用户具有的表格字段权限
     * @param uid
     * @param tableId
     * @return
     */
    List<String> queryAuthrizedTableFields(Integer uid,String tableId);
    
    /**
     * 查询所有上级
     */
    List<SysTableAuthInfo> selectAllAuper();
}
